using System;
using System.Collections.Generic;

namespace QUAN_LY_NGAN_HANG_CAU_HOI_TRAC_NGHIEM
{
    public class MucDoBUS
    {
       private MucDoDAL mucdo;

        public Guid MaSoMucDo
        {
            get { return mucdo.MaSoMucDo; }
            set { mucdo.MaSoMucDo = value; }
        }
              
        public string ChuThich
        {
            get { return mucdo.ChuThich; }
            set { mucdo.ChuThich = value; }
        }

        public MucDoBUS()
        {
            mucdo = new MucDoDAL();
        }

        public MucDoBUS(MucDoDAL en)
        {
            mucdo = en;
        }

        public static MucDoBUS[] ListMucDo()
        {
            List<MucDoBUS> lst = new List<MucDoBUS>();
            foreach (MucDoDAL cn in MucDoDAL.ListMucDo())
            {
                lst.Add(new MucDoBUS(cn));
            }
            return lst.ToArray();
        }
    }
}